package fr.utbm.to52.android_bibtex.model.spec;

import java.util.EventObject;

public class FieldSpecificationsEvent extends EventObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1478615712410210796L;

	private final FieldSpecificationEvent fieldSpecificationChangeEvent;

	public FieldSpecificationsEvent(FieldSpecification source) {
		super(source);
		this.fieldSpecificationChangeEvent = null;
	}

	public FieldSpecificationsEvent(FieldSpecificationEvent fieldSpecificationChangeEvent) {
		super(fieldSpecificationChangeEvent.getSource());
		this.fieldSpecificationChangeEvent = fieldSpecificationChangeEvent;
	}

	@Override
	public FieldSpecification getSource() {
		return (FieldSpecification) super.getSource();
	}

	public FieldSpecificationEvent getFieldSpecificationChangeEvent() {
		return this.fieldSpecificationChangeEvent;
	}

}
